{extend name="admin@main"}

{block name="content"}
<div class="layui-form-item text-left">
    <button class="layui-btn layui-btn-danger" type='button'  onclick="window.history.back()">返 回</button>
</div>
<form class="layui-card layui-form">
    <div class="layui-card-body">
        <fieldset class="layui-elem-field layui-field-title" >
            <legend>信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">微信昵称<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.nickname|default=''}">
            </div>
            <label class="layui-form-label">真实姓名<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.realname|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-inline">
                <img data-tips-image src="{$user.avatar}" class="thumb-image" alt="">
            </div>
            <label class="layui-form-label">手机号<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.phone|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.school.name|default=''}">
            </div>
            <label class="layui-form-label">年级<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.schoolgrade.name|default=''}">
            </div>
            <label class="layui-form-label">班级<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.schoolclass.name|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">教师号</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.teacher_no|default=''}">
            </div>
            <label class="layui-form-label">总授课时长<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.time|default='0'}小时">
            </div>
        </div>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>常规课</legend>
        </fieldset>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <table class="layui-table">
                    <tr>
                        <th>课程</th>
                        <th>授课时间</th>
                    </tr>
                    {foreach $user['normal'] as $key=>$vo}
                    <tr>
                        <td>{$vo.name|default=''}</td>
                        <td>{$vo.time|default=''}</td>
                    </tr>
                    {/foreach}
                </table>
            </div>
        </div>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>兴趣课</legend>
        </fieldset>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <table class="layui-table">
                    <tr>
                        <th>课程</th>
                        <th>授课时间</th>
                    </tr>
                    {foreach $user['interest'] as $key=>$vo}
                    <tr>
                        <td>{$vo.name|default=''}</td>
                        <td>{$vo.time|default=''}</td>
                    </tr>
                    {/foreach}
                </table>
            </div>
        </div>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>考勤记录</legend>
        </fieldset>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <table class="layui-table">
                    <tr>
                        <th>课程</th>
                        <th>授课日期</th>
                        <th>授课时间</th>
                    </tr>
                    {foreach $user['attendance'] as $key=>$vo}
                    <tr>
                        <td>{$vo.course_name|default=''}</td>
                        <td>{$vo.day|default=''}</td>
                        <td>{$vo.time|default=''}</td>
                    </tr>
                    {/foreach}
                </table>
            </div>
        </div>

    </div>

    <div class="layui-form-item text-center">
        <button class="layui-btn layui-btn-danger" type='button'  onclick="window.history.back()">返 回</button>
    </div>
</form>
{/block}

{block name='style'}
<style>
    .layui-form-label{
        width: 10%;
    }
</style>
{/block}